package com.changcheng.mapper;

import com.changcheng.pojo.Article;
import org.apache.ibatis.annotations.Delete;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ArticleMapper {

    //add
    void add(Article article);
    //delete
    @Delete("delete from article where id = #{id}")
    void delete(Integer id);
    //update
    void update(Article article);
    //select
    List<Article> article(Article article);
    //select数量
    Integer selectItemNum(Article article);

}
